import WebSocket from "@/util/WebSocket";

let ws = new WebSocket()
ws.start()

export default function base(Vue) {
    if (base.installed) {
        return
    }

    !Vue.prototype.$ws && Object.defineProperties(Vue.prototype, {
        $ws: {
            get () {
                // const _this = this;
                return ws
            }
        }
    })
}
